﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for CustomException
/// </summary>
namespace FlexySys.Common.Exceptions
{
    [Serializable]
    public class AttributeNotFoundException : System.Exception
    {
        public string AttributeName { get; set; }
        public AttributeNotFoundException(string attributeName)
            : base(string.Format("\"{0}\" attribute not found in DocumentItem class", attributeName))
        {
            this.AttributeName = attributeName;
        }
    }

    [Serializable]
    public class TypeNotFoundException : System.Exception
    {
        public TypeNotFoundException(string type)
            : base(string.Format("Control with type \"{0}\" not found in project", type))
        {

        }
    }
}